Skip to content

fix: check both stdout and stderr for --color=auto#245

Merged
zharinov merged 1 commit intomasterfrom
fix/color-auto-detection
Jan 4, 2026
Merged

fix: check both stdout and stderr for --color=auto#245
zharinov merged 1 commit intomasterfrom
fix/color-auto-detection

Conversation

@zharinov
Copy link
Copy Markdown
Member

@zharinov zharinov commented Jan 4, 2026

Summary

  • Fix --color=auto to check both stdout and stderr for TTY detection
  • Previously only checked stderr, causing ANSI codes to leak into piped JSON output (e.g., plotnik exec ... | jq)

Closes the issue described in docs/wip/cli-color-detection.md.

@zharinov zharinov enabled auto-merge (squash) January 4, 2026 12:47
@zharinov zharinov merged commit 1f03703 into master Jan 4, 2026
4 checks passed
@zharinov zharinov deleted the fix/color-auto-detection branch January 4, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant